package com.sanhuo.idms.dao;

import com.sanhuo.idms.entity.DormIp;
import com.sanhuo.triild.Basic.BaseMapper;
import com.sanhuo.triild.annotation.Mapper;
import com.sanhuo.triild.annotation.Select;

@Mapper
public interface DormIpMapper extends BaseMapper<DormIp> {

    @Select("select * from dorm_ip where dormId = #{dormId}")
    DormIp findByDormId(String dormId);

    @Select("select * from dorm_ip where ip = #{ip}")
    DormIp findByIp(String ip);
}
